package com.mentaleye.enums;

public enum TimeTableEnums {
	
	ISCONFIRM(136,"班级课表状态"),NOTCONFIRM(138,"未确定");

    private TimeTableEnums(Integer code, String msg) {
        this.code = code;
    }

	private Integer code;
    private String msg;
    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }


    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
    
    /**
     * 根据编码查找枚举
     */
    public static TimeTableEnums find(int code) {
        for (TimeTableEnums frs : TimeTableEnums.values()) {
            if (frs.getCode().intValue() == code) {
                return frs;
            }
        }
        return null;
    }
}
